


class TimeZoneTable:
	def __init__(self):
		self.hash= {}
		self.hash['-0100'] = '-1'
		self.hash['-0130'] = '-1'
		self.hash['-0200'] = '-2'
		self.hash['-0230'] = '-2'
		self.hash['-0300'] = '-3'
		self.hash['-0330'] = '-3'
		self.hash['-0400'] = '-4'
		self.hash['-0430'] = '-4'
		self.hash['-0500'] = '-5'
		self.hash['-0530'] = '-5'
		self.hash['-0600'] = '-6'
		self.hash['-0630'] = '-6'
		self.hash['-0700'] = '-7'
		self.hash['-0730'] = '-7'
		self.hash['-0800'] = '-8'
		self.hash['-0830'] = '-8'
		self.hash['-0900'] = '-9'
		self.hash['-0930'] = '-9'
		self.hash['-1000'] = '-10'
		self.hash['-1030'] = '-10'
		self.hash['-1100'] = '-11'
		self.hash['-1130'] = '-11'
		self.hash['-1200'] = '-12'
		self.hash['+0000'] = '+0'
		self.hash['+0030'] = '+0'
		self.hash['-0000'] = '+0'
		self.hash['-0030'] = '+0'
		self.hash['+0100'] = '+1'
		self.hash['+0130'] = '+1'
		self.hash['+0200'] = '+2'
		self.hash['+0230'] = '+2'
		self.hash['+0300'] = '+3'
		self.hash['+0330'] = '+3'
		self.hash['+0400'] = '+4'
		self.hash['+0430'] = '+4'
		self.hash['+0500'] = '+5'
		self.hash['+0530'] = '+5'
		self.hash['+0600'] = '+6'
		self.hash['+0630'] = '+6'
		self.hash['+0700'] = '+7'
		self.hash['+0730'] = '+7'
		self.hash['+0800'] = '+8'
		self.hash['+0830'] = '+8'
		self.hash['+0900'] = '+9'
		self.hash['+0930'] = '+9'
		self.hash['+1000'] = '+10'
		self.hash['+1030'] = '+10'
		self.hash['+1100'] = '+11'
		self.hash['+1130'] = '+11'
		self.hash['+1200'] = '+12'
		self.hash['+1300'] = '+13'
		self.hash['EK'] = '-12'
		self.hash['MIS'] = '-11'
		self.hash['HAW'] = '-10'
		self.hash['ALA'] = '-9'
		self.hash['PST'] = '-8'
		self.hash['MST'] = '-7'
		self.hash['CST'] = '-6'
		self.hash['EST'] = '-5'
		self.hash['AST'] = '-4'
		self.hash['NWF'] = '-3'
		self.hash['BBA'] = '-3'
		self.hash['MAT'] = '-2'
		self.hash['AZO'] = '-1'
		self.hash['GMT'] = '+0'
		self.hash['AMS'] = '+1'
		self.hash['AIM'] = '+2'
		self.hash['BCP'] = '+2'
		self.hash['HRI'] = '+2'
		self.hash['BKR'] = '+3'
		self.hash['MSV'] = '+3'
		self.hash['THE'] = '+3'
		self.hash['ABT'] = '+4'
		self.hash['KAB'] = '+4'
		self.hash['EIK'] = '+5'
		self.hash['BCD'] = '+5'
		self.hash['ADC'] = '+6'
		self.hash['BHJ'] = '+7'
		self.hash['BHU'] = '+8'
		self.hash['SST'] = '+8'
		self.hash['OST'] = '+9'
		self.hash['SYA'] = '+9'
		self.hash['ADA'] = '+9'
		self.hash['BGP'] = '+10'
		self.hash['CMS'] = '+10'
		self.hash['HVL'] = '+10'
		self.hash['MSN'] = '+11'
		self.hash['AWE'] = '+12'
		self.hash['FKM'] = '+12'
		#damn limeys!
		self.hash['BST'] = '+1'
		#really, do we need seasonal timezones?
		self.hash['EDT'] = '-4'
		self.hash['PDT'] = '-7'
		self.hash['ARST'] ='-3'
		self.hash['CET'] = '+1'
		self.hash['CDT'] = '+10'
		self.hash['CEST']= '+2'
		self.hash['EET'] = '+2'
		self.hash['HST'] = '-10'
		self.hash['MDT'] = '-6'
		#special case, sue me
		self.hash['MET-1METDST'] = '-1'
		self.hash['MET DST'] = '-1'
		self.hash['DST'] = '-1'
	def getTZ(self, tz):
		try:
			return self.hash[tz]
		except KeyError, e:
			print tz
			
